package com.zuoye.day04;

public class BankTest {
    public static void main(String[] args) {
        //随机数
      /*  double ran = Math.random();
        System.out.println(ran);*/


        //随机生成10个整数(1-10)
        for (int i = 0; i < 10; i++) {
            System.out.println((int)(Math.random() * 9+1));
        }

        //随机生成10个整数 0-1
        for (int j = 0; j < 10; j++) {
            System.out.println(Math.round(Math.random()));  //round 四舍五入取整数
        }

        //0:1 = 7:3

    }
    }

